/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-07-12     hehung       the first version
 */
#ifndef SRC_APP_ESP8266_H_
#define SRC_APP_ESP8266_H_

typedef enum
{
    ESP8266_NTP_SNYC = 0,
    ESP8266_WEATHER_SYNC,
    ESP8266_IOT,
    ESP8266_IDLE
} e_Esp8266WorkType;

extern void Esp8266_TaskCreate(void);
extern int Esp8266_HardwareEnable(void);
extern int Esp8266_HardwareDisable(void);
extern int Esp8266_HardwareReset(void);
extern void Esp8266_ReConfiguring(void);
extern e_Esp8266WorkType Esp8266_GetWorkingMode(void);
extern void Esp8266_SetTaskPeriod(uint32_t period);
extern void Esp8266_SetWorkingMode(e_Esp8266WorkType mode);

#endif /* SRC_APP_ESP8266_H_ */
